package com.echo.im.engin.packet.in;

import com.echo.im.common.contant.Command;
import com.echo.im.engin.packet.MessagePacket;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

/**
 *
 * @author echo
 * @date 2024-08-18
 */
@Data
public class GroupMessageInPacket extends MessagePacket {

    @NotNull(message = "群聊id不可为空")
    @Schema(description = "群聊id")
    private Long groupId;

    @Schema(description = "是否回执消息")
    private Boolean receipt;

    @Size(max = 20, message = "一次最多只能@20个小伙伴哦")
    @Schema(description = "被@用户列表")
    private List<Long> atUserIds;

    @Override
    public Byte getCommand() {
        return Command.GROUP_IN_MESSAGE;
    }

}
